package config

type ConfigData struct {
	Listen         string `yaml:"listen"`
	Debug          bool   `yaml:"debug"`
	Truncate       bool   `yaml:"truncate"`
	ReportInterval uint32 `yaml:"report-interval"`
	Mysql          struct {
		Name string `yaml:"name"`
		User string `yaml:"user"`
		Pass string `yaml:"pass"`
		Host string `yaml:"host"`
		Port uint16 `yaml:"port"`
	} `yaml:"mysql"`
	RabbitMQ struct {
		URL      string `yaml:"url"`
		Exchange string `yaml:"exchange"`
	} `yaml:"rabbitmq"`
}
